using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.DTO
{
    /// <summary>
    /// 业务实体DTO
    /// </summary>
    public class BusinessDto
    {
        /// <summary>
        /// 业务名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 实体完整限定名
        /// </summary>
        public string ClassFullName { get; set; } = string.Empty;

        /// <summary>
        /// 业务描述
        /// </summary>
        public string? Description { get; set; }
    }

    /// <summary>
    /// 字段信息DTO
    /// </summary>
    public class FieldDto
    {
        /// <summary>
        /// 字段名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; } = string.Empty;

        /// <summary>
        /// 字段类型
        /// </summary>
        public string Type { get; set; } = string.Empty;

        /// <summary>
        /// 是否为日期字段
        /// </summary>
        public bool IsDate { get; set; }

        /// <summary>
        /// 是否为系统编码字段
        /// </summary>
        public bool IsSystemCode { get; set; }

        /// <summary>
        /// 字段描述
        /// </summary>
        public string? Description { get; set; }
    }

}
